package com.serli.sample.data.runner.service;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

public class AbstractService {
	@PersistenceContext
	EntityManager manager = null;
	
	public AbstractService(EntityManager manager) {
		this.manager = manager;
	}

	public void persist(Object entity) {
		manager.persist(entity);
	}
	
	public void remove(Object entity) {
		manager.remove(entity);
	}
}
